import { request } from '@/utils/http'

export function homePageApi (params) {
  return request({
    url: '/api/user/homePage',
    method: 'GET',
    params
  })
}

export function loginApi (params) {
  return request({
    url: '/api/user/login',
    method: 'POST',
    data: params
  })
}

export function uploadApi (params) {
  return request({
    url: '/api/common/upload',
    method: 'POST',
    headers: {
      'Content-Type': 'multipart/form-data'
    },
    data: params
  })
}

export function getUserInfoListApi (params) {
  return request({
    url: '/api/user/getUserInfoList',
    method: 'GET',
    params
  })
}

export function addJobTicketApi (params) {
  return request({
    url: '/api/jobTicket/add',
    method: 'POST',

    data: params
  })
}


export function getJobDataListApi (params) {
  return request({
    url: '/api/jobTicket/getJobDataList',
    method: 'GET',
    params
  })
}